import java.io.IOException;
import java.util.HashMap;

public class TcpServe11 extends TcpServe1{
    private HashMap<String,String>m=new HashMap<>();
    public TcpServe11(int port) throws IOException {
        super(port);
        m.put("小猫","cat");
        m.put("小狗","dog");
        m.put("小熊","bear");


    }

    @Override
    public String process(String request) {
        return m.getOrDefault(request,"字典中查不到");

    }

    public static void main(String[] args) throws IOException {
        TcpServe11 tcpServe11=new TcpServe11(10001);
        tcpServe11.start();
    }
}
